package com.huaxin.hxmodulesystem.mapping;

import com.huaxin.hxmodulesystem.dto.request.AddOperationLogReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateOperationLogReqDTO;
import com.huaxin.hxmodulesystem.models.OperationLog;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface OperationLogMapping {

    OperationLog toEntity(AddOperationLogReqDTO in);

    void updateEntity(UpdateOperationLogReqDTO in, @MappingTarget OperationLog entity);
}